package com.carbohydrate42.kotlin_compose_demo.api

import com.carbohydrate42.kotlin_compose_demo.config.RetrofitConfig
import com.carbohydrate42.kotlin_compose_demo.dto.base.Result
import com.carbohydrate42.kotlin_compose_demo.dto.vo.UserVo
import retrofit2.http.POST


interface AuthApi {
    @POST("auth/user/all")
    suspend fun all(): Result<List<UserVo>>

    companion object {
        val instance: AuthApi by lazy { RetrofitConfig.instance.create(AuthApi::class.java) }
    }
}